function AddUrlParam(url, name, value)
{
	if( url.indexOf("?") == -1 )
		return url + "?" + name + "=" + value;
	if( url.indexOf(name + "=") == -1 )
		return url + "&" + name + "=" + value;

	var re = new RegExp( name + "=[^=]*&","i"); 
	url = url + "&";
	url = url.replace(re, name + "=" + value + "&")
	return url.substr(0, url.length-1);
}
function RemoveUrlParam( url, name )
{
	var re = new RegExp( name + "=[^&]*&", "i" );
	url += "&";
	url = url.replace( re, "" );
	url = url.substr(0, url.length-1);
	return url;
}
/*
function GetUrlParamValue( url, name )
{
	var re = new RegExp( name + "=[^&]+&", "i" );
	url += &;
	
}
*/